<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪类选择器2</title>
    <style>
        p::before {
            /* content: "床前明月光，"; */
            width: 300px;
            height: 300px;
            display: inline-block;
            background-image: url(./images/ikun.png);
            background-size: contain;
            background-repeat: no-repeat;
        }

        p::after {
            content: "低头思故乡。";
            color: cornflowerblue;
        }
    </style>
</head>
<body>
    <p>疑是地上霜。举头望明月，</p>
</body>
</html>